﻿<c:BaseControl x:Class="personalplaner.plugins.plananalysis.AnalysisView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             xmlns:c="clr-namespace:personalplaner.common.controls;assembly=personalplaner.common"
             xmlns:conv="clr-namespace:personalplaner.common.converters;assembly=personalplaner.common"
             xmlns:bs="clr-namespace:personalplaner.business.stamm;assembly=personalplaner.business"
             xmlns:vm="clr-namespace:personalplaner.common.mvvm.factory;assembly=personalplaner.common"
             xmlns:fac="clr-namespace:personalplaner.plugins.plananalysis.viewmodels.factories"
             vm:ViewModelLoader.FactoryType="{x:Type fac:AnalysisModelFactory}"
             xmlns:v="clr-namespace:personalplaner.plugins.plananalysis"
               xmlns:k="clr-namespace:personalplaner.common.themes;assembly=personalplaner.common">

    <Control.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/personalplaner.common;component/resources/TabControlStyles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Control.Resources>

    <Grid>
        <TabControl Style="{StaticResource ViewsTransparentTabControl}" ItemContainerStyle="{StaticResource ViewsTransparentMenuTabItem}" SelectedItem="{Binding SelectedTab}">
            <TabItem >
                <TabItem.Header>
                    <TextBlock Text="Jahresübersicht" FontWeight="Heavy" Foreground="{DynamicResource {x:Static k:ResourceKeys.ForegroundBrush}}" Margin="10,0,10,0"/>
                </TabItem.Header>
                <v:YearOverview x:Name="yearOverview"/>
            </TabItem>
            <TabItem >
                <TabItem.Header>
                    <TextBlock Text="Ferienübersicht" FontWeight="Heavy" Foreground="{DynamicResource {x:Static k:ResourceKeys.ForegroundBrush}}" Margin="10,0,10,0"/>
                </TabItem.Header>
                <v:HolidayOverview x:Name="holidayOverview"/>
            </TabItem>
        </TabControl>
                
    </Grid>
</c:BaseControl>
